services.hostapd.radios.<name>.networks.<name>.dynamicConfigScripts
All of these scripts will be executed in lexicographical order before hostapd is started, right after the bss segment was generated and may dynamically append bss options to the generated configuration file.
The first argument will point to the configuration file that you may append to. The second and third argument will point to this BSS's MAC allow and MAC deny file respectively.
- Type
attribute set of absolute path- Default
{ }- Example
{ exampleDynamicConfig = pkgs.writeShellScript "dynamic-config" '' HOSTAPD_CONFIG=$1 # These always exist, but may or may not be used depending on the actual configuration MAC_ALLOW_FILE=$2 MAC_DENY_FILE=$3 cat >> "$HOSTAPD_CONFIG" << EOF # Add some dynamically generated statements here EOF ''; }- Declared
- <nixpkgs/nixos/modules/services/networking/hostapd.nix>